﻿namespace Basic.Repository.Abstract.Entities.SqlSugarEntities;

public class Entity : IEntity<long>
{
    [SugarColumn(IsPrimaryKey = true)]
    public long Id { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [SugarColumn(IsOnlyIgnoreUpdate = true)] // InsertSql = "CURRENT_TIMESTAMP"
    public DateTime CreationTime { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    [SugarColumn(IsNullable = true, IsOnlyIgnoreInsert = true, UpdateSql = "CURRENT_TIMESTAMP")] // UpdateSql = "CURRENT_TIMESTAMP"
    public DateTime? ModificationTime { get; set; }

}